<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>jq trim()去除首尾的空白</title>
    <script src="/jquery-3.2.1.js"></script>
    <script type="text/javascript">
        document.write($.trim("  HEllo   JQuery    "));
    </script>
</head>
<body>

</body>
</html>